home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / dkfil25s.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-10-16  |  4KB  |  169 lines

  1. echo off
  2. cls
  3. scrn05
  4. echo -
  5. echo  This program will install the Disk Filer program files to a Drive
  6. echo  of your choice (A, - E), and start Disk Filer for you.  This
  7. echo  program will not modify your autoexec.bat or config.sys files.
  8. echo .
  9. echo  If this installation is an upgrade from a previous version of Disk
  10. echo  Filer then you will need to:  Press CTRL-C   Now
  11. echo  Then answer "Y" to question "Terminate Batch Job?"  Then copy all
  12. echo  your *.DTA files to a diskette.  Then start this install program
  13. echo  again to install this New Version.
  14. echo .
  15. echo       Thanks for selecting and trying the Disk Filer System.
  16. echo -
  17. pause
  18. if %1 / == /  goto drv
  19. if %1 == a goto adrv
  20. if %1 == b goto bdrv
  21. if %1 == c goto cdrv
  22. if %1 == d goto ddrv
  23. if %1 == e goto edrv
  24. :drv
  25. cls
  26. echo -
  27. echo  You need to specify a Drive in which to install Disk Filer TO,
  28. echo  and then second, FROM which diskette drive as well.
  29. echo .
  30. echo  For Example:
  31. echo   install a b,   install b a,   install c a,   install d a
  32. echo .
  33. echo  The four (4) examples above are some ways this install will work,
  34. echo     BUT do NOT type the commas!
  35. echo .
  36. echo         Install will install Disk Filer on Drives A thru E.
  37. echo .
  38. echo      You will go to DOS from here, then restart by typing:  "install x x"
  39. echo                      ( x  ='s  a drive letter)
  40. echo -
  41. pause
  42. goto done
  43. :adrv
  44. echo -
  45. echo     You have typed -install a- and therefore Disk Filer files will
  46. echo  be put on a blank formatted diskette.  If you have not placed a
  47. echo  blank formatted diskette in drive A:, DO SO NOW!  (Press CTRL-C
  48. echo  and type `Y' in response to -terminate batch job?- to return
  49. echo  to DOS).
  50. echo -
  51. pause
  52. goto cpy
  53. :cpy
  54. copy df.* %1:
  55. copy *.com %1:
  56. copy readme??.1st %1:
  57. copy *.bat %1:
  58. copy *.doc %1:
  59. copy *.20? %1:
  60. copy *.txt %1:
  61. copy *.exe %1:
  62. goto end
  63. :bdrv
  64. echo -
  65. echo        You have typed -install b- and therefore Disk Filer files will
  66. echo  be put on a blank formatted diskette.  If you have not placed a
  67. echo  blank formatted diskette in drive B:, DO SO NOW!  (Press CTRL-C
  68. echo  and type `Y' in response to -terminate batch job?- to return
  69. echo  to DOS).
  70. echo -
  71. pause
  72. goto cpy
  73. :cdrv
  74. echo -
  75. echo      You have typed "install c" and therefore a directory called
  76. echo  -Dskfiler- will be made on drive C:.  All Disk Filer files will be
  77. echo  copied into that directory for you.
  78. echo -
  79. pause
  80. c:
  81. md dskfiler
  82. %2:
  83. copy df.* %1:\dskfiler
  84. copy *.com %1:\dskfiler
  85. copy readme??.1st %1:\dskfiler
  86. copy *.doc %1:\dskfiler
  87. copy *.bat %1:\dskfiler
  88. copy *.20? %1:\dskfiler
  89. copy *.txt %1:\dskfiler
  90. copy *.exe %1:\dskfiler
  91. goto end
  92. :ddrv
  93. echo -
  94. echo       You have typed "install d"  and therefore a directory called
  95. echo  -Dskfiler- will be made on drive D:.  All Disk Filer files will be
  96. echo  copied into that directory for you.
  97. echo -
  98. pause
  99. d:
  100. md dskfiler
  101. %2:
  102. copy df.* %1:\dskfiler
  103. copy *.com %1:\dskfiler
  104. copy *.1st %1:\dskfiler
  105. copy *.doc %1:\dskfiler
  106. copy *.bat %1:\dskfiler
  107. copy *.20? %1:\dskfiler
  108. copy *.txt %1:\dskfiler
  109. copy *.exe %1:\dskfiler
  110. goto end
  111. :edrv
  112. echo -
  113. echo        You have type "install e" and therefore a directory called
  114. echo  -Dskfiler- will be made on drive E:.  All Disk Filer files will be
  115. echo  copied into that directory for you.
  116. echo -
  117. pause
  118. e:
  119. md dskfiler
  120. %2:
  121. copy df.* %1:\dskfiler
  122. copy *.com %1:\dskfiler
  123. copy *.1st %1:\dskfiler
  124. copy *.doc %1:\dskfiler
  125. copy *.bat %1:\dskfiler
  126. copy *.20? %1:\dskfiler
  127. copy *.txt %1:\dskfiler
  128. copy *.exe %1:\dskfiler
  129. goto end
  130. :end
  131. echo -
  132. echo                All files have been copied to designated drive.
  133. echo  NOTE: The capslock key and light will be turned on for this program
  134. echo        needs uppercase letters.  It will be turned off when you exit
  135. echo        the program.
  136. echo .
  137. echo       NOW:   type;   DF      ,then press Enter to start Disk Filer!
  138. echo .
  139. echo -
  140. pause
  141. scrn09
  142. goto slip
  143. :slip
  144. if %1 == a goto adsk
  145. if %1 == b goto bdsk
  146. if %1 == c goto end2
  147. if %1 == d goto end3
  148. if %1 == e goto end4
  149. :end2
  150. c:
  151. cd\dskfiler
  152. goto done
  153. :end3
  154. d:
  155. cd\dskfiler
  156. goto done
  157. :end4
  158. e:
  159. cd\dskfiler
  160. goto done
  161. :adsk
  162. a:
  163. goto done
  164. :bdsk
  165. b:
  166. goto done
  167. :done
  168. scrn09
  169.